package com.qfmy.mapper.novel;

import model.entity.novel.Rating;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 清风明月
 * @Package com.qfmy.mapper.novel
 * @date 2025/6/7
 * @description 评分
 */
@Mapper
@SuppressWarnings("all")
public interface RatingMapper {


    /**
     * 获取评分
     * @param novelId
     * @param userId
     * @return
     */
    Double getRating(Long novelId, Long userId);

    /**
     * 设置评分
     * @param rating
     */
    void setRating(Rating rating);
}
